package com.model;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class Employee {
	private String em_serialNumber;
	private String em_name;
	private String em_sex;
	private int em_age;
	private String em_IDCard;
	private String em_born;
	private String em_nation;
	private String em_marriage;
	private String em_visage;
	private String em_ancestralHome;
	private String em_tel;
	private String em_address;
	private String em_afterSchool;
	private String em_speciality;
	private String em_culture;
	private String em_starttime;
	//private int em_departmentId;
	private Deptment deptment;
	private String em_typeWork;
	private String em_createtime;
	private String em_createName;
	private String em_bz;
	
	@Id
	public String getEm_serialNumber() {
		return em_serialNumber;
	}
	public void setEm_serialNumber(String emSerialNumber) {
		em_serialNumber = emSerialNumber;
	}
	public String getEm_name() {
		return em_name;
	}
	public void setEm_name(String emName) {
		em_name = emName;
	}
	public String getEm_sex() {
		return em_sex;
	}
	public void setEm_sex(String emSex) {
		em_sex = emSex;
	}
	public int getEm_age() {
		return em_age;
	}
	public void setEm_age(int emAge) {
		em_age = emAge;
	}
	public String getEm_IDCard() {
		return em_IDCard;
	}
	public void setEm_IDCard(String emIDCard) {
		em_IDCard = emIDCard;
	}
	public String getEm_born() {
		return em_born;
	}
	public void setEm_born(String emBorn) {
		em_born = emBorn;
	}
	public String getEm_nation() {
		return em_nation;
	}
	public void setEm_nation(String emNation) {
		em_nation = emNation;
	}
	public String getEm_marriage() {
		return em_marriage;
	}
	public void setEm_marriage(String emMarriage) {
		em_marriage = emMarriage;
	}
	public String getEm_visage() {
		return em_visage;
	}
	public void setEm_visage(String emVisage) {
		em_visage = emVisage;
	}
	public String getEm_ancestralHome() {
		return em_ancestralHome;
	}
	public void setEm_ancestralHome(String emAncestralHome) {
		em_ancestralHome = emAncestralHome;
	}
	public String getEm_tel() {
		return em_tel;
	}
	public void setEm_tel(String emTel) {
		em_tel = emTel;
	}
	public String getEm_address() {
		return em_address;
	}
	public void setEm_address(String emAddress) {
		em_address = emAddress;
	}
	public String getEm_afterSchool() {
		return em_afterSchool;
	}
	public void setEm_afterSchool(String emAfterSchool) {
		em_afterSchool = emAfterSchool;
	}
	public String getEm_speciality() {
		return em_speciality;
	}
	public void setEm_speciality(String emSpeciality) {
		em_speciality = emSpeciality;
	}
	public String getEm_culture() {
		return em_culture;
	}
	public void setEm_culture(String emCulture) {
		em_culture = emCulture;
	}
	public String getEm_starttime() {
		return em_starttime;
	}
	public void setEm_starttime(String emStarttime) {
		em_starttime = emStarttime;
	}
	/*public int getEm_departmentId() {
		return em_departmentId;
	}
	public void setEm_departmentId(int emDepartmentId) {
		em_departmentId = emDepartmentId;
	}*/
	@ManyToOne(cascade=CascadeType.ALL)
	@JoinColumn(name="em_departmentId")
	public Deptment getDeptment() {
		return deptment;
	}
	public void setDeptment(Deptment deptment) {
		this.deptment = deptment;
	}
	
	public String getEm_typeWork() {
		return em_typeWork;
	}
	
	public void setEm_typeWork(String emTypeWork) {
		em_typeWork = emTypeWork;
	}
	public String getEm_createtime() {
		return em_createtime;
	}
	public void setEm_createtime(String emCreatetime) {
		em_createtime = emCreatetime;
	}
	public String getEm_createName() {
		return em_createName;
	}
	public void setEm_createName(String emCreateName) {
		em_createName = emCreateName;
	}
	public String getEm_bz() {
		return em_bz;
	}
	public void setEm_bz(String emBz) {
		em_bz = emBz;
	}
	
	
}
